package com.ecp.util;

import java.util.Properties;

public class SystemUtil {

	public static final String OS_WINDOWS = "windows,windows vista";
	public static final String OS_LINUXX = "linux";

	public static boolean isWindows() {
		Properties p = System.getProperties();
		String os = p.getProperty("os.name");
		if (os != null && OS_WINDOWS.contains(os.toLowerCase())) {
			return true;
		} else {
			return false;
		}
	}

	public static boolean isLinux() {
		Properties p = System.getProperties();
		String os = p.getProperty("os.name");
		if (os != null && OS_LINUXX.contains(os.toLowerCase())) {
			return true;
		} else {
			return false;
		}
	}
}
